package com.fh.util;

import java.awt.image.BufferedImage;

import jp.sourceforge.qrcode.data.QRCodeImage;

/**
 * 
 * @包名 :com.fh.util
 * @文件名 :TwoDimensionCodeImage.java
 *      TODO 类作用：二维码
 * @Author: 孙超文 386480250@qq.com
 * @Date: 2015-7-1 上午9:40:02
 */
public class TwoDimensionCodeImage implements QRCodeImage {

	BufferedImage bufImg;

	public TwoDimensionCodeImage(BufferedImage bufImg) {
		this.bufImg = bufImg;
	}

	public int getHeight() {
		return bufImg.getHeight();
	}

	public int getPixel(int x, int y) {
		return bufImg.getRGB(x, y);
	}

	public int getWidth() {
		return bufImg.getWidth();
	}

}
